#include"SLN.h"


test01()
{
	SLNode* node1 = (SLNode*)malloc(sizeof(SLNode));
	node1->data = 1;

	SLNode* node2 = (SLNode*)malloc(sizeof(SLNode));
	node2->data = 2;

	SLNode* node3 = (SLNode*)malloc(sizeof(SLNode));
	node3->data = 3;

	SLNode* node4 = (SLNode*)malloc(sizeof(SLNode));
	node4->data = 4;

	node1->next = node2;
	node2->next = node3;
	node3->next = node4;
	node4->next = NULL;

	SLNode* plist = node1;
	SLNPrint(plist);
}

test02()
{
	SLNode* phead = NULL;
	SLNPushBack(&phead, 1);
	SLNPrint(phead);
}
int main()
{
	test01();
	return 0;
}